﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HomeworkOpp
{
    class CallList
    {
        private List<GsmCall> CallHistory { get; set; }
        public void AddCall(GsmCall newGsmCall)
        {
            this.CallHistory.Add(newGsmCall);
        }
        public void DeleteCall(GsmCall myCall)
        {
            this.CallHistory.Remove(myCall);
        }
        public void DeleteCall(int index)
        {
            this.CallHistory.RemoveAt(index);
        }
        public void ClearCallHistory()
        {
            this.CallHistory.Clear();
        }
        public List<GsmCall> GetCallHistory()
        {
            return this.CallHistory;
        }
    }
}
